const { default: axios } = require("axios");

async function logbaidu(){
    try {
        const res = await axios.get("https://www.baidu.com/")
        console.log(res);
    }
    catch(e){
        console.error(e);
    }
}

logbaidu()